package com.ruoyi.basedata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.basedata.mapper.WfzXcxmaccontMapper;
import com.ruoyi.basedata.domain.WfzXcxmaccont;
import com.ruoyi.basedata.service.IWfzXcxmaccontService;

/**
 * 薪酬项目与会计科目对照Service业务层处理
 * 
 * @author xiefeng
 * @date 2022-12-12
 */
@Service
public class WfzXcxmaccontServiceImpl implements IWfzXcxmaccontService 
{
    @Autowired
    private WfzXcxmaccontMapper wfzXcxmaccontMapper;

    /**
     * 查询薪酬项目与会计科目对照
     * 
     * @param fid 薪酬项目与会计科目对照主键
     * @return 薪酬项目与会计科目对照
     */
    @Override
    public WfzXcxmaccont selectWfzXcxmaccontByFid(Long fid)
    {
        return wfzXcxmaccontMapper.selectWfzXcxmaccontByFid(fid);
    }

    /**
     * 查询薪酬项目与会计科目对照列表
     * 
     * @param wfzXcxmaccont 薪酬项目与会计科目对照
     * @return 薪酬项目与会计科目对照
     */
    @Override
    public List<WfzXcxmaccont> selectWfzXcxmaccontList(WfzXcxmaccont wfzXcxmaccont)
    {
        return wfzXcxmaccontMapper.selectWfzXcxmaccontList(wfzXcxmaccont);
    }

    /**
     * 新增薪酬项目与会计科目对照
     * 
     * @param wfzXcxmaccont 薪酬项目与会计科目对照
     * @return 结果
     */
    @Override
    public int insertWfzXcxmaccont(WfzXcxmaccont wfzXcxmaccont)
    {
        return wfzXcxmaccontMapper.insertWfzXcxmaccont(wfzXcxmaccont);
    }

    /**
     * 修改薪酬项目与会计科目对照
     * 
     * @param wfzXcxmaccont 薪酬项目与会计科目对照
     * @return 结果
     */
    @Override
    public int updateWfzXcxmaccont(WfzXcxmaccont wfzXcxmaccont)
    {
        return wfzXcxmaccontMapper.updateWfzXcxmaccont(wfzXcxmaccont);
    }

    /**
     * 批量删除薪酬项目与会计科目对照
     * 
     * @param fids 需要删除的薪酬项目与会计科目对照主键
     * @return 结果
     */
    @Override
    public int deleteWfzXcxmaccontByFids(Long[] fids)
    {
        return wfzXcxmaccontMapper.deleteWfzXcxmaccontByFids(fids);
    }

    /**
     * 删除薪酬项目与会计科目对照信息
     * 
     * @param fid 薪酬项目与会计科目对照主键
     * @return 结果
     */
    @Override
    public int deleteWfzXcxmaccontByFid(Long fid)
    {
        return wfzXcxmaccontMapper.deleteWfzXcxmaccontByFid(fid);
    }
}
